package day14.com.homework;

import java.util.UUID;

// 抽奖人
public class Person {

    private String id;
    private String name;

    @Override
    public String toString() {
        return "Person{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                '}';
    }

    public Person() {
    }

    public Person( String name) {
        this.id = UUID.randomUUID().toString().replace("-","");
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId() {
        this.id = UUID.randomUUID().toString().replace("-","");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
